from multiprocessing import Pool, cpu_count
import time

def m1(x): 
    print x * x 

if __name__ == '__main__': 
    pool = Pool(cpu_count()) 
    i_list = range(8)
    pool.map_async(m1, i_list)
    #pool.close()
    #pool.join()
    time.sleep(1)
    print "end"
